Prevent rare freeze on Android 4.2 through 4.4
authorPo Lu <luangruo@yahoo.com>
Fri, 28 Feb 2025 14:36:08 +0000 (22:36 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 28 Feb 2025 14:40:14 +0000 (22:40 +0800)
commitc8cec840d7972d5cca0c255a19fd521703c7628c
treeae6b412351b1d8e24e5c6f2118447959f2a6818a
parent5247da2e3cd2705278bb68e0c5313a6972a6d43c
Prevent rare freeze on Android 4.2 through 4.4

* src/android.c (android_run_select_thread, android_init_events)
(android_select): Enable self-pipes on all Android versions <= 21.
The Android C library provides a functioning pselect on these
systems, but it does not apply the signal mask atomically.
(android_run_select_thread): Correct typo.  This never produced
any adverse consequences, as the relevant signals would already
have been blocked by `setupSystemThread'.

Do not merge to master.
src/android.c